/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package register.ucm;
import register.model.InputValueModel;
/**
 *
 * @author Vitamin
 */
public class GenerateCollegeCode {

    private InputValueModel value;
    private String tp;

    public GenerateCollegeCode(InputValueModel temp)
    {
        value=temp;
    }

    public String generateCollege()
    {
        if(value.getGroup().equals("Student") || value.getGroup().equals("Teacher"))
        {
        if(value.getCollege().equals("Computing & Technology"))
        {
            tp="01";
        }
        else if(value.getCollege().equals("Economy & Management"))
        {
            tp="02";
        }
        else if(value.getCollege().equals("Foreign Language"))
        {
            tp="03";
        }
        else if(value.getCollege().equals("Mathematics"))
        {
            tp="04";
        }
        }
        else
        {
            System.out.println("22");
            tp="00";
        }

        return tp;
    }
}
